Painting of Pope Gergory XIII
if (is.na(x)) then y=NA else if (x=1) then y=4 else if (x=2) then y=3 else if (x=3) then y=2 else if (x=4) then y=1 else y=9
0,1 to 1,0 x y=1-x 0 1 1 0 1,2,3,4 to 4,3,2,1 but 0,1,2,3,4 to 4,3,2,1,0 x y=5-x x y=4-x 1 4 0 4 2 3 1 3 3 2 2 2 4 1 3 1 4 0
Repeated measures example in short and fat format
Data set using a spaced format
Database linkage between race code and race labels